package net.qiqbframework.commandhandling;

import net.qiqbframework.tracing.Span;

public interface CommandBusSpanFactory {

    Span createDispatchCommandSpan(CommandMessage<?> commandMessage);

    Span createHandleCommandSpan(CommandMessage<?> commandMessage);

    <T> CommandMessage<T> propagateContext(CommandMessage<T> commandMessage);
}
